package com.liuhuan.alipaydemo.config;

import lombok.Data;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
@Component
@Data
public class AliPayConfig {
    /**
     * 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
     */
    private String appId = "2021000122692833"; // fqq

    /**
     * 商户私钥，您的PKCS8格式RSA2私钥  填上你的私钥
     *  第一行为可用状态
     */
    private String privateKey = "MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCPBmKbgp9gLZUxm9w+ise8kQ3bCGfUtT8Wt/NWRLgNlqzvvCGPxA5h7XbF9mGg8qqt4BERsz99tqtwc2CnD8icv++rkmnLQIzVRH4YUB1rPUeL50SUkrgvRHW46jwAinz8RMXgP9+0oOFeTre+zLZ1vM6+QIa0alXxqSCmw4BYrzYkArg3OLEP+YGpqwFYkcqMGnizy80aE7tHX8YzF2C0z0OHH2zhsBWOg834KVUy1xuZrwwVH1Jq3VM5T8s/20no0kqNh7b+lrem1KZ6MtMncxptftUWbatr0lE/yo6SRgfDlAf1K3E+etxvZX615nbSJqZLbcZzsUycj+xTZNUVAgMBAAECggEAbjKuQUGIiLM2U63SKYIGWTyuH0g/r/0iKd/7pkl2QkoI3wHmHf4iUsODEw49tKOkbCnLHQct8S+QsijDnJSlrliYUmqSBt+qYxvNx+/aaukhOiMrjQnqzciCp8IaDxSlLj3S9HBibarTWjVuj5ztLJQX+zB+WX3g0DzOgo75Udos11G89lJLT1vqI56iIDty+PJiCnE6yMqF5U7sneVk2c88aHlhCVkqiKThF6yJz4/+JMwSx7lkvDjCn4M1gNhtYAvJnyoc7UaT/FvAvaFe4RZDJKmuoUuQY1l4e6x4Z+w7ATiDGUeLCQ5iuZEY7AmofB8/azBXCK/pEXgm8PeAoQKBgQDYU+tet4nnCemxspMURlpAwZ4glTlo+VSxYdgWuAYYU/1bB63plN+vtyn8MMvhBlx9rxtAvPjafnCzcOPlrsIwjHs412AGpqU9VxjBAACiIGQCKgJv7oRgWYfJJtAFQpzPgHs1A6EVoq8WJC5H7beTVyXjmE/UckOswOM1bsL+iQKBgQCpQRGnn8x4PUFxefoPpJMINGMcoZRTntnih8ev5wYisC6rXMrXICsVA6N8L/zM7i1VjQnKi1lxa8FPn22HdfHKrhCKKQnKreEI+eiTfIcRUuCSsytsehEKyrIt/bqKLmJ3RHP7jHXegMBiQvuzvKLiF6vrbFlGs6CRLyST7Q+fLQKBgDXnIzzkqt4A4FRA1Nk2doKwPACOblGz3uCcKsXucMZbF0Q5c6JCUEJud225kvOtLBq9KSNGcxOucdKkjITMuOJz/rg5IlpF5+KS8z4UDBRZ0dGgOh895YpEhMsgerD02jHyJ8Eb+GV1tf7kYQvXNejmzDAb4bhkCGzhWzwTL09RAoGARwqc0nLsa/uqIGtGXpKBdIwonbfkfkTKx56eXmLl3GF+9UZ5jVpfOu7QDCxIO+ws8x/D4FQlMso71aPhYV5MIvp0zsjy5zOcpRvgVyeJuefDg0/ZBismRBVYPJ2nUqCti8obtJX8U2xPU+8xnvuqkqPE8YgE4Pw8hTP4cm6qg/ECgYBUh30vb90VUa1rFO+REHBA/6jd+LlMooYXKBSfYp4O9UqBdn42hyZlXGBEQiU5uayfKWKPGtY0OvU3VyQzhG1DZdLDo+kJ1MfDjQMBfidAVW0d4HhYU23pEQgLwKZtmjBxRbuhA8FIzU9O0MqmMzGOyh4dJpBIqpISaVPvPjqYqg==";
    /**
     * 支付宝公钥,  填上你的公钥
     */
    private String publicKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAq3kH5dyXSAz4Kuav3CxXxfBkijPX5K9/v1Xz1QRgFTtSyEFfCn4pTPXcex2+dnO3GyKSbKViha0ywEgLXGgxIa9Vye4tSRHdx8XczehTUoUlk/0FyMqgagObsI0JXegXCnw4pj8MsOGfeHeZgqBLekNpk66G8n5eNUwzmD7qCx/foXZqt1lUpQdQ5p2E5H5+MudrEWgDqstrTQK1OlerkjLY5Ob52W7jbZCs2tR8FEqArwI6QRM2mAUD3ccmoXkfK47U1KjYK7uMy93iaSxm7dGSmHZGmCqUuGuPsR2ODJ1zgyPuN/SPTwZTxJfraq71rfzx1Gso8zgsXUKqc+ivgQIDAQAB";


    /**
     * 服务器异步通知页面路径需http://格式的完整路径，不能加?id=123这类自定义参数
     */
    private String notifyUrl = "http://localhost:9081/returnUrl";

    /**
     * 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数
     */
    private String returnUrl = "http://localhost:9081/returnUrl";

    /**
     * 签名方式
     */
    private String signType = "RSA2";

    /**
     * 字符编码格式
     */
    private String charset = "UTF-8";

    /**
     * 支付宝网关
     */
    private String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";
}
